package com.qf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qf.pojo.DtsAddress;
import com.qf.pojo.DtsGoods;
import com.qf.vo.GoodsAllinone;
import com.qf.vo.GoodsStat;

import java.util.List;

public interface GoodsService {
    Long findGoodsCount();

    IPage<DtsGoods> findListByQuery(Integer page, Integer limit, String goodsSn, String name, String sort, String order);

    List<Integer> findGoodsCategory(Integer id);

    DtsGoods findOneGoods(Integer id);

    void updateAll(GoodsAllinone goodsAllinone);

    void createGoods(GoodsAllinone goodsAllinone);

    void deleteGoods(DtsGoods dtsGoods);

    List<GoodsStat> findOrderStat();
}
